<template>
	<view class="content" :style="{ background: bgColor, padding,
	 top: `${(top - 0)}px`, bottom: `${(bottom - 0)}px`}">
		<slot></slot>
	</view>
</template>

<script>
	export default {
		props: {
			bgColor: {
				tpye: String,
				default: ''
			},
			padding: {
				type: String,
				default: '0'
			},
			top: {
				type: [String, Number],
				default: 0
			},
			bottom: {
				type: [String, Number],
				default: 0
			}
		},
	}
</script>

<style scoped lang="scss">
	.content {
		position: fixed;
		left: 0;
		right: 0;
		bottom: 0;
		overflow-y: auto;
	}
</style>